﻿using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test
{
    class Car
    {
        public int Money;

        public double Speed(double km)
        {
            Console.WriteLine("值参数类型");
            km = 110.5;
            return km;

        }

        public double Speed1(ref double km1)
        {

            km1 = 110.5;
            Console.WriteLine("引用参数类型,调用后值发生改变");
            return km1;
        }

        public void Buy(ref string color)
        {
            color += "买买买";


        }

        public int Run(out int i)
        {
            i = 12;
            return i;
        }



    }
}
